/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include <节点/节点.h>

#include <面/面.h>
#include <节点/插座/C_数值插座.h>



class C_点距八叉树节点 : public C_节点基类 {
	S_设备环境	m_GPU环境;

	S_物体*		m_Ob;
public:
	C_点距八叉树节点(S_设备环境& ctx);
	~C_点距八叉树节点();

	bool	f_update();
	void	f_网格面树数据构建(const std::vector<S_VecSphere>& 包围盒, S_点距八叉树* tree);

	S_物体* f_get虚拟体();
	void	f_入回收();
	void	f_回收();
};


C_节点基类* f_node_载入点距八叉树节点(S_设备环境& ctx, FILE* f);
void		f_node_保存点距八叉树节点(C_节点基类* n, FILE* f);





























